package com.ruixun.shopmanagement.dao;

import com.ruixun.shopmanagement.entity.Product;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ProductMapper {
    List<Product> selectHotProductList(int start,int length);
    List<Product> selectProductList(@Param(value = "cid")Integer cid, @Param(value = "start")Integer start,@Param(value = "length")Integer length);
   int selectTotoalCountByCid(@Param(value = "cid")int cid);
   Product selectProductBypid(@Param(value = "pid")String pid);
}